import {
	createSSRApp
} from "vue";
import * as Pinia from "pinia";
import uviewPlus from 'uview-plus'
import router from './router'
import App from "./App.vue";
import share from './utils/share'

const pinia = Pinia.createPinia();
export function createApp() {
	const app = createSSRApp(App);
  	app.use(router)
	app.use(pinia);
	app.use(uviewPlus)
    console.log(app)
    app.mixin(share)
	return {
		app
	};
}
